﻿//********************************************************************************//
//创建日期：<创建日期，2016-05-31>
//创建作者：<郭登杰，guodengjie@shanghai3h.com>
//功能说明：并户流程
//********************************************************************************//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using BLL;
using BLL.Access;
using System.Data;
using Platform.Http;
using Web.Class;

namespace Web.Controls.LAIHANLC
{
    public partial class UCLHLCBingHu : System.Web.UI.UserControl
    {
        #region 属性

        /// <summary>
        /// 来函类型
        /// </summary>
        public eLaiHanLX LaiHanLX { get; set; }

        /// <summary>
        /// 来函流程
        /// </summary>
        public eLaiHanLCBH LaiHanLC { get; set; }

        #endregion

        #region 变量

        #endregion

        #region 事件

        /// <summary>
        /// 页面加载事件
        /// </summary>
        protected void Page_Load(object sender, EventArgs e)
        {
            //第一次页面加载
            InitControl();
        }

        protected override void OnInit(EventArgs e)
        {
            //InitControl();
        }

        /// <summary>
        /// 前台验证后实际执行后台操作
        /// </summary>
        protected void btnActPerform_Click(object sender, EventArgs e)
        {
        }

        /// <summary>
        /// 回调响应
        /// </summary>
        protected void ASPxCallbackCommon_Callback(object source, DevExpress.Web.CallbackEventArgs e)
        {

        }

        #endregion

        #region 方法

        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitControl()
        {
            this.UCLHLCLAIHANXX.LaiHanLC = this.LaiHanLC;
            this.UCLHShenQingXX_BH.LaiHanLC = this.LaiHanLC;
            this.UCLHLCYIJIANS.LaiHanLC = this.LaiHanLC;
            this.UCLHLCSHENPI.LaiHanLC = this.LaiHanLC;
            if (this.LaiHanLC == eLaiHanLCBH.业务员)
            {
                this.lblFlowName.Text = "业务员建议";
            }
            else if (this.LaiHanLC == eLaiHanLCBH.主任)
            {
                this.lblFlowName.Text = "主任复核";
            }
            else if (this.LaiHanLC == eLaiHanLCBH.节水科)
            {
                this.lblFlowName.Text = "节水科审核";
            }
            else if (this.LaiHanLC == eLaiHanLCBH.计财科)
            {
                this.lblFlowName.Text = "计财科长复审";
            }
            else if (this.LaiHanLC == eLaiHanLCBH.处长)
            {
                this.lblFlowName.Text = "处长审批";
            }
        }

        /// <summary>
        /// 以空条件加载列表
        /// </summary>
        public void LoadList()
        {
            this.UCLHLCLAIHANXX.BindList(null,null,null,null,null);
            this.UCLHLCLAIHANXX.SetListChecked(true);
        }

        #endregion
    }
}